package com.chanct.test;

import java.util.HashMap;
import java.util.Map;

public class test6 {

	public static void main(String[] args) {
		int hash1 = "ABCDEa123abc".hashCode();  
		int hash2 = "ABCDFB123abc".hashCode();  
		System.out.println(hash1);  
		System.out.println(hash2);  

		Map<String,Integer> map = new HashMap<String,Integer>();
		map.put("1", 100);
		map.put("1", 2000);
		
		 for (Map.Entry<String, Integer> entry : map.entrySet()) {
			   System.out.println("key= " + entry.getKey() + " and value= " + entry.getValue());
		}
	}

}
